home *** CD-ROM | disk | FTP | other *** search
/ Aminet 40 / Aminet 40 (2000)(Schatztruhe)[!][Dec 2000].iso / Aminet / gfx / 3d / Skulpt_src.lha / sKulpt-src / Proto.h < prev    next >
Encoding:
C/C++ Source or Header  |  2000-10-04  |  8.1 KB  |  205 lines

  1. // Prototypes de d3dmisc.cpp
  2. HRESULT hrPreInitD3D(void);
  3. HRESULT hrInitD3D(HWND hWnd, const GUID* pDeviceGUID);
  4. HRESULT hrCloseD3D(BOOL bFull);
  5. HRESULT hrShowFrame(void);
  6. HRESULT hrRestoreSurfaces(void);
  7. VOID    vOnMove(int x, int y);
  8. HRESULT hrRender3DEnvironment(void);
  9.  
  10. // Prototypes de Render.cpp
  11. void    vSetD3DState(void);
  12. HRESULT hrInitWorld( LPDIRECT3DDEVICE7 pd3dDevice );
  13. HRESULT hrRender( LPDIRECT3DDEVICE7 pd3dDevice );
  14.  
  15. // Prototypes de menuwproc.cpp
  16. LRESULT CALLBACK lrMenuWndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam);
  17. void    vUpdateMenu(void);
  18. void    vRemakeTriview(LPARAM);
  19.  
  20. // Prototypes de 3dwproc.cpp
  21. LRESULT CALLBACK lrPerspWndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam);
  22. inline void    vForce3DRefresh(BOOL bFull);
  23.  
  24. // Prototypes de 2dwproc.cpp
  25. LRESULT CALLBACK lrPlanarWndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam);
  26. inline void    vForce2DRefresh(BOOL bFull);
  27.  
  28. // Prototypes de logo.cpp
  29. void    vLogo(void);
  30.  
  31. // Prototypes de winstuff.c
  32. void    vTrace(char *Str, ...);
  33. BOOL    bPrepareGadgets(void);
  34. void    vEraseGadgets(void);
  35.  
  36. // Prototypes de file-open-sculpt.cpp
  37. void    vLoadSculpt(void);
  38. void    vSaveSculpt(void);
  39.  
  40. // Prototypes de file-bin.cpp
  41. void    vSaveBin(void);
  42. void    vLoadBin(void);
  43.  
  44. // Prototypes de file-directx.cpp
  45. void    vSaveDirectX(void);
  46. void    vLoadDirectX(void);
  47.  
  48. // prototypes de dialogs.cpp
  49. BOOL CALLBACK bGlobLightDlgProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam);
  50. BOOL CALLBACK bSphereDlgProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam);
  51. BOOL CALLBACK bMtrlDlgProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam);
  52. BOOL CALLBACK bLampDlgProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam);
  53. BOOL CALLBACK bFaceDlgProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam);
  54. BOOL CALLBACK bExpandDlgProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam);
  55. BOOL CALLBACK bHelixDlgProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam);
  56. BOOL CALLBACK bHoleDlgProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam);
  57. BOOL CALLBACK bStringDlgProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam);
  58. BOOL CALLBACK bHintDlgProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam);
  59.  
  60. // Prototypes de BaseObjects.cpp
  61. BOOL    bSameMaterial(D3DMATERIAL7 *hMtrl1, D3DMATERIAL7 *hMtrl2);
  62. int     iFindMaterial(D3DMATERIAL7 *hMtrl, int iPrevious);
  63. BOOL    bTextureMaterial(int iMtrl, char *sTexName);
  64. int     iFastMaterial(char *sName, unsigned char bRouge, unsigned char bVert, unsigned char bBleu);
  65. int     iMakeMaterial(D3DMATERIAL7 *hMtrl, char *sName, BOOL bSame);
  66. BOOL    bDeleteMaterial(int iMtrl);
  67.  
  68. int     iFindVertex(D3DVECTOR p, int iPrevious);
  69. int     iMakeVertex(D3DVECTOR p, BOOL bSame);
  70. BOOL    bVertInEdge(int iVert, int iEdge);
  71. BOOL    bVertInTriangle(int iVert, int iTriangle);
  72. BOOL    bIsVertexSelected(int iVertex);
  73. int     iEdgesPerVert(int iVert);
  74. int     iTrianglesPerVert(int iVert);
  75. BOOL    bDeleteVertex(int iCnt);
  76. #ifndef _AMIGA_
  77. BOOL    bSmoothNorm(int iVertex);
  78. #endif
  79.  
  80. int     iFindEdge(int i1, int i2);
  81. int     iMakeEdge(int i1, int i2);
  82. BOOL    bDeleteEdge(int iCnt);
  83. BOOL    bIsEdgeSelected(int iTriangle);
  84. BOOL    bIsEdgePartiallySelected(int iTriangle);
  85.  
  86. int     iFindTriangle(int i1, int i2, int i3);
  87. int     iMakeTriangle(int i1, int i2, int i3, int iMtrl); // unsigned char bRouge, unsigned char bVert, unsigned char bBleu);
  88. BOOL    bSetUV(int iTriangle, int u1, int v1, int u2, int v2, int u3, int v3);
  89. BOOL    bDeleteTriangle(int iCnt);
  90. #ifndef _AMIGA_
  91. BOOL    bUpdateD3DTri(int iCnt);
  92. #endif
  93.  
  94. BOOL    bSubdivideTriangle(int iTriangle);
  95. BOOL    bIsTriangleSelected(int iTriangle);
  96. BOOL    bIsTrianglePartiallySelected(int iTriangle);
  97.  
  98. int     iFindLamp(D3DVECTOR p, int iPrevious);
  99. int     iMakeLamp(D3DLIGHTTYPE    dltType,            /* Type of light source */
  100.                   D3DCOLORVALUE   dcvDiffuse,         /* Diffuse color of light */
  101.                   D3DCOLORVALUE   dcvSpecular,        /* Specular color of light */
  102.                   D3DCOLORVALUE   dcvAmbient,         /* Ambient color of light */
  103.                   D3DVECTOR       dvPosition,         /* Position in world space */
  104.                   D3DVECTOR       dvDirection,        /* Direction in world space */
  105.                   D3DVALUE        dvRange,            /* Cutoff range */
  106.                   D3DVALUE        dvFalloff,          /* Falloff */
  107.                   D3DVALUE        dvAttenuation0,     /* Constant attenuation */
  108.                   D3DVALUE        dvAttenuation1,     /* Linear attenuation */
  109.                   D3DVALUE        dvAttenuation2,     /* Quadratic attenuation */
  110.                   D3DVALUE        dvTheta,            /* Inner angle of spotlight cone */
  111.                   D3DVALUE        dvPhi               /* Outer angle of spotlight cone */
  112.                  );
  113. BOOL    bUpdateLamp(int iLamp);
  114. BOOL    bDeleteLamp(int iLamp);
  115.  
  116. void    vResetProcess(void);
  117. void    vDeleteObjects(void);
  118. void    vPropagateSelection();
  119. BOOL    bCloneSelection(D3DVECTOR vShift, BOOL bCloneMode);
  120. void    vHideSelection(void);
  121. void    vRevealHidden(void);
  122. D3DVECTOR vCenter(void);
  123. void    vCollect(void);
  124.  
  125. // prototypes de Objects - Geom.cpp
  126. void    vAddSphere(D3DVECTOR vCenter, float r, int horiz, int vert, BOOL bHalf);
  127. void    vAddBoing(D3DVECTOR vCenter, float r);
  128. void    vAddTorus(D3DVECTOR vCenter, float R, float r, int n, int m);
  129. void    vAddDisk(D3DVECTOR vCenter, float r, int iSubdiv);
  130. void    vAddCircle(D3DVECTOR vCenter, float r, int iSubdiv);
  131. void    vAddCube(D3DVECTOR vCenter, float r);
  132. void    vAddPrism(D3DVECTOR vCenter, float r);
  133. void    vAddCyl(D3DVECTOR vCenter, float r, int iSubdiv);
  134. void    vAddTube(D3DVECTOR vCenter, float r, int iSubdiv);
  135. void    vAddCone(D3DVECTOR vCenter, float r, int iSubdiv);
  136.  
  137. // Prototypes de Objects - D3D
  138. void    vDeleteD3DObjects(void);
  139. int     iMakeD3DObj(void);
  140. int     iFindD3DObject(D3DVECTOR p, int iPrevious);
  141. BOOL    bMoveD3DObj(int iObject, D3DVECTOR vPos);
  142.  
  143. // Prototypes de d3denum.cpp
  144. HRESULT D3DEnum_SelectDefaultDevice(D3DEnum_DeviceInfo** ppDevice, DWORD dwFlags);
  145. HRESULT D3DEnum_UserChangeDevice(D3DEnum_DeviceInfo** ppDevice);
  146.  
  147. // Prototypes de triangulate.cpp
  148. void    fill(void);
  149.  
  150. // Prototypes de triangulator.cpp
  151. void    triangulate(char *triswitches, struct triangulateio *in, struct triangulateio *out, triangulateio *vorout);
  152.  
  153. // Prototypes de FontOutliner.cpp
  154. void    vAddTextOutline(void);
  155.  
  156. #ifdef _AMIGA_
  157. // Prototypes de asl.c
  158. int     FSInit(void);
  159. int     FSelect(char *Bouton, char *Fichier);
  160. void    FSClose(void);
  161. int     SMInit(void);
  162. int     SMSelect(void);
  163. void    SMClose(void);
  164.  
  165. // Prototypes de console.cpp
  166. BOOL    InitConsole(HWND);
  167. void    CloseConsole(void);
  168. void    ConPutS(char *);
  169.  
  170. // Prototypes de amistuff.cpp spécifiques Amiga (les protos des fonctions Windows sont dans le fake windows.h)
  171. HGDIOBJ hAddImage(HWND hWnd, char *sName, int iX, int iY, int iWidth, int iHeight);
  172. void    vRefreshImage(HWND hWnd, HGDIOBJ hObject);
  173. void    vMoveImage(HWND hWnd, HGDIOBJ hObject, int iX, int iY);
  174. void    vRemoveImage(HWND hWnd, HGDIOBJ hObject);
  175. void    UnclipWindow(HWND);
  176. Region *ClipWindow(HWND, LONG, LONG, LONG, LONG);
  177. void    CheckMenuItem(HMENU hMenu, int iId, int iState);
  178. HMENU   GetMenu(HWND hWnd);
  179. BOOL    bLoadHints(void);
  180. BOOL    bSaveHints(void);
  181. void    vSetHints(void);
  182.  
  183. // Prototypes de resload.cpp spécifiques Amiga (les protos des fonctions Windows sont dans le fake windows.h)
  184. BOOL    DLGInit(char *sResFileName);
  185. void    DLGClose(void);
  186. int     DialogBox(HINSTANCE hInst, LPCTSTR sRes, HWND hWnd, DLGPROC bFunc);
  187. int     DialogBoxParam(HINSTANCE hInst, LPCTSTR sRes, HWND hWnd, DLGPROC bFunc, LPARAM lParam);
  188. BOOL    EndDialog(HWND hWnd, int nResult);
  189. int     SendDlgItemMessage(HWND hWnd, int iGad, int iMsg, WPARAM wParam, LPARAM lParam);
  190. int     GetDlgItem(HWND hWnd, int iGad);
  191. int     GetDlgCtrlID(int iGad);
  192. void    SetScrollInfo(int iGad, int iDummy, SCROLLINFO *hSi, BOOL bDummy);
  193. void    vProcessDlgMessage(void);
  194.  
  195. // prototypes de ami-texture.cpp
  196. BOOL    bLoadTextures(void);
  197. void    vUnLoadTextures(void);
  198. void    vXRefMaterials2Textures(void);
  199. BOOL    GenTextures(W3D_Context* hW3DC);
  200. void    vCloseTextures(W3D_Context *hW3DC);
  201.  
  202. // prototypes de vDemo.cpp
  203. void    vDemo(void);
  204. #endif
  205.